local g=math.random local vol=.5 local vol1=2 ts=game:GetService("TweenService") ti=TweenInfo.new(.5) local O1 = Instance.new('Part') local O2 = Instance.new('SpecialMesh',O1) O1.Name="headphone" O1.Size = Vector3.new(.65,.001,.001) O2.VertexColor=Vector3.new(g(100)/100,g(100)/100,g(100)/100) O2.MeshId = "rbxassetid://1733935908" O1.CanCollide=false O1.BrickColor=BrickColor.Random() local weld = Instance.new("Weld",O1) weld.Part0=O1 weld.Part1=owner.Character.Head weld.C0=CFrame.new(0,-.2,0)*CFrame.Angles(0,math.rad(90),0) local sound = Instance.new("Sound",O1) sound.Volume=vol sound.RollOffMode="Linear" sound.RollOffMaxDistance=25 sound.Looped=true sound.Name='fakeheadphonemusic' sound.SoundId="rbxassetid://0" sound.Playing=true mu = Instance.new("EqualizerSoundEffect",sound) mu.MidGain=-40 mu.HighGain=-40 print([[controls: /e supported off/on = take off/put on id/ID, pit/PITCH, vol/VOLUME fovdiv/ - fov divider (default 150) fovdiv/0 to disable smooth/0 (solid) - 0.9 (liquid) - fov smoothness (default .5)]]) sound1=sound:Clone()sound1.Parent=owner.PlayerGui sound1.Name="coolheadphonemusic"sound1.Volume=vol1 sound1.EqualizerSoundEffect:Remove() O1.Parent=owner.Character NLS([[ local music = owner.PlayerGui.coolheadphonemusic local m = owner.Character.headphone.fakeheadphonemusic local eqs={} local fovdiv=150 local off=false local oldfov=70 local fovsmooth=.5 for _,v in pairs(workspace:GetDescendants()) do if v:IsA"Sound"and v.name~=m.name then mu = Instance.new("EqualizerSoundEffect",v) mu.MidGain=-40 mu.HighGain=-40 mu.Name="headmuffle55" table.insert(eqs,mu) end -- 10 end workspace.DescendantAdded:Connect(function(v) if v:IsA"Sound"and off==false then mu = Instance.new("EqualizerSoundEffect",v) mu.MidGain=-40 mu.HighGain=-40 table.insert(eqs,mu) mu.Name='headmuffle55' end end) owner.Chatted:Connect(function(m) m=string.gsub(m,"/e ","") if m=="off"then off=true pcall(function() for _,v in next,eqs do v:Destroy() end end) elseif m=="on"then off=false for _,v in pairs(workspace:GetDescendants()) do if v:IsA"Sound"and v~=m then mu = Instance.new("EqualizerSoundEffect",v) mu.MidGain=-40 mu.HighGain=-40 mu.Name="headmuffle55" table.insert(eqs,mu) end end elseif m:sub(1,7)=="fovdiv/"then fovdiv=math.min(500,tonumber(m:sub(8))) elseif m:sub(1,7)=="smooth/"then local brah=tonumber(m:sub(8)) if brah then fovsmooth=math.clamp(brah,0,.9) else fovsmooth=.5 end end end) owner.Character:FindFirstChildOfClass("Humanoid").Died:connect(function() pcall(function() music:Destroy() for _,v in next,eqs do v:Destroy() end end) end) game:GetService("RunService").RenderStepped:Connect(function() if not off and fovdiv>0 then local fov=70+music.PlaybackLoudness/fovdiv workspace.CurrentCamera.FieldOfView=fov+(oldfov-fov)*fovsmooth oldfov=workspace.CurrentCamera.FieldOfView else workspace.CurrentCamera.FieldOfView=70 end end)]],owner.Character) local ison=true owner.Chatted:connect(function(m) m=string.gsub(m,"/e ","") if m:sub(1,3) == "id/" then sound.SoundId = "rbxassetid://"..m:sub(4) sound1.SoundId=sound.SoundId sound1.Parent=nil sound:Stop() sound1:Stop() task.wait() sound:Play() sound1:Play() sound1.Parent=owner.PlayerGui elseif m=="off" then sound1.Parent=nil sound.RollOffMaxDistance=50 ison=false sound.Volume=vol1 ts:Create(weld,ti,{C0=CFrame.new(-.3,-.1,0)*CFrame.Angles(-1.57,0,1.57)}):Play() elseif m=="on" then sound1.TimePosition=sound.TimePosition sound1.Parent=owner.PlayerGui sound.RollOffMaxDistance=25 ison=true sound.Volume=vol ts:Create(weld,ti,{C0=CFrame.new(0,-.2,0)*CFrame.Angles(0,1.57,0)}):Play() elseif m:sub(1,4)=="pit/" then sound1.Pitch=m:sub(5) sound.Pitch=m:sub(5) elseif m:sub(1,4)=="vol/"then vol=tonumber(m:sub(5))/4 or .5 vol1=vol*4 sound.Volume=(if ison then vol else vol1) sound1.Volume=vol1 end end)